<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html">
     <f:view>

         <h:head>
         <link href="styles.css" rel="stylesheet" type="text/css"/>
         <title>
             <h:outputText value="#{messages.tituloAlteraAutomovel}"/>
         </title>
      </h:head>
         <h:body>
         <h:form>
             <table>
               <tr>
                  <td>
                     <h:outputText value="#{messages.nomeAutomovel}"/>
                  </td>
                  <td>
                      <h:inputText value="#{automovelController.automovel.nome}" maxlength="40" />
                  </td>
               </tr>
                <tr>
                  <td>
                     <h:outputText value="#{messages.corAutomovel}"/>
                  </td>
                  <td>
                      <h:inputText value="#{automovelController.automovel.cor}"/>
                  </td>
               </tr>
               <tr>
                  <td>
                      <h:outputText value="#{messages.anoAutomovel}" />
                  </td>
                  <td>
                      <h:inputText value="#{automovelController.automovel.ano}" />
                      
                  </td>
               </tr>
               <tr>
                  <td>
                      <h:outputText value="#{messages.modeloAutomovel}"/>
                  </td>
                  <td>
                      <h:inputText value="#{automovelController.automovel.modelo}" />
                  </td>
               </tr>
               <tr>
                  <td>
                      <h:outputText value="#{messages.qntPortasAutomovel}"/>
                  </td>
                  <td>
                      <h:inputText value="#{automovelController.automovel.qntPortas}"/>
                  </td>
               </tr>
                 <tr>
                  <td>
                      <h:outputText value="#{messages.chassiAutomovel}"/>
                  </td>
                  <td>
                      <h:inputText value="#{automovelController.automovel.chassi}"/>
                  </td>
               </tr>
              </table>
             <h:commandButton value="Alterar" action="#{automovelController.alterar()}"/>
         </h:form>
      </h:body>
   </f:view>
</html>